﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace BDSim
{
    public class BDSimSetting: PropertyNotify
    {
        DataFileConfig _DataFile;
        ToolbarVisibilityConfig _ToolBarVisibility;

        public ToolbarVisibilityConfig ToolBarVisibility
        {
            get { return _ToolBarVisibility; }
            set { _ToolBarVisibility = value; NotifyPropertyChanged("ToolBarVisibility"); }
        }

        public DataFileConfig DataFile
        {
            get { return _DataFile; }
            set { _DataFile = value; NotifyPropertyChanged("DataFile"); }
        }
    }

    public class DataFileConfig
    {
        string _EphDataFile = "";
        string _EopDataFile = "";

        /// <summary>
        /// 配置极移跳秒文件路径
        /// </summary>
        public string EopDataFile
        {
            get { return _EopDataFile; }
            set { _EopDataFile = value; }
        }

        /// <summary>
        /// 配置日月星历文件路径
        /// </summary>
        public string EphDataFile
        {
            get { return _EphDataFile; }
            set { _EphDataFile = value; }
        }
    }

    public class ToolbarVisibilityConfig
    {
        Visibility _StandardApplication;
        Visibility _SimulationControl;
        Visibility _SimulationTime;

        /// <summary>
        /// 设置仿真时间工具栏的可见性
        /// </summary>
        public Visibility SimulationTime
        {
            get { return _SimulationTime; }
            set { _SimulationTime = value; }
        }

        /// <summary>
        /// 设置仿真控制工具栏的可见性
        /// </summary>
        public Visibility SimulationControl
        {
            get { return _SimulationControl; }
            set { _SimulationControl = value; }
        }

        /// <summary>
        /// 设置标准应用工具栏的可见性
        /// </summary>
        public Visibility StandardApplication
        {
            get { return _StandardApplication; }
            set { _StandardApplication = value; }
        }
    }
}
